package com.sjhang.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 充值记录表
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TbTopRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录id
     */
    @TableId(value = "top_record_id", type = IdType.ID_WORKER)
    private Long topRecordId;

    /**
     * 用户id
     */
    private Long issuedId;

    /**
     * 充值金额
     */
    private BigDecimal topRecordMoney;

    /**
     * 充值之前金额
     */
    private BigDecimal oldMoney;

    /**
     * 充值之后金额
     */
    private BigDecimal newMoney;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Integer deleteFlag;

    /**
     * 版本号
     */
    @Version
    private Integer versionFlag;


}
